package com.zjuee.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zjuee.base.base.Service;
import com.zjuee.base.dto.common.plan.PlanInfoDto;
import com.zjuee.base.model.common.plan.PlanInfo;
import com.zjuee.vo.PlanInfoVo;
import com.zjuee.vo.PlanLoginVo;

import java.util.HashMap;
import java.util.List;

/**
 * @author wu liang
 * @since 1.0
 */
public interface PlanService extends Service<PlanInfo, PlanInfoDto> {

    PlanLoginVo selectBriefInfo(Long bciId, String wpiYear);

    PlanInfo selectInfoByBciId(Long bciId, String wpiYear);

    /**
     * 获取计划编号
     *
     * @param wpiCode
     * @param wpiYear
     * @return
     */
    String getWpiCode(String wpiCode, String wpiYear);


    HashMap<String, Object> planAll(Long planId);

    /**
     * 提交计划
     *
     * @param id
     * @return
     */
    String commit(Long id);


    Page<PlanInfoVo> listPagePlanInfo(PlanInfoDto planInfoDto);

    List<PlanInfo> getPlanInfo(PlanInfo planInfo);

    PlanInfo getPlanInfoById(Long wpiId);
}
